package com.muqi.app.pj.shops;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import org.json.JSONObject;

import com.flyco.widget.BannerItem;
import com.google.gson.Gson;
import com.muqi.app.qlearn.modles.MediaInfo;

public class GoodsInfo implements Serializable {
	private static final long serialVersionUID = 1L;
	public String shangpin_id;
	public String mingcheng;
	public String fenlei;
	public MediaInfo fileurl;
	public float danjia;
	public int kucun;
	public float yunfei;
	public int ziyoupinpai;
	public int pingjiashu;
	public int goumaishu;
	public String obj_type;

    	
    public String id;
	public String user_id;
	public String class_manager_id;
	public String credits;
	public String create_time;
	public String num;
	public String title;
	/*** 状态*/
	public String zhuangtai;
	public ArrayList<String> tupian;
	/*** 是否收藏*/
	public String shoucangbiaoshi;
	/*** 是否支持退货*/
	public String zhichituihuo;
	/*** 退货规则webview url*/
	public String tuihuoguize;
	/*** 选择的商品数*/
	public int selectedCount;
	
	public static GoodsInfo fromJson(JSONObject json) {
		if(json != null){
            return new Gson().fromJson(json.toString(),GoodsInfo.class);
        }
		return null;
	}
}
